package edu.sctu.practice.class02.renzhaoxu.test05;

/**
 * Created by Administrator on 2015/10/15.
 */
public class Person {

    private String name;
    private int age;


    public Person(String name,int age){

        this.name=name;
        this.age=age;

    }

    void display(){

        System.out.println("姓名"+name+"年龄"+age);
    }

    public static void main(String[] args) {

        Person person=new Person("Tom",20);

            person.display();
    }
}

